package cn.jiadakeji.parent.mapper;

import cn.jiadakeji.parent.domain.WxpayOrder;
import cn.jiadakeji.parent.dto.WxpayOrderDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.v3.oas.annotations.parameters.RequestBody;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Entity cn.jiadakeji.parent.domain.WxpayOrder
 */
@Mapper
public interface WxpayOrderMapper extends BaseMapper<WxpayOrder>  {

    WxpayOrder getByCode(String code);

    int updateWxpayOrderOptimisticLock(@RequestBody WxpayOrder wxpayOrder);

    WxpayOrderDTO createOrder(@Param("coursePreId") String coursePreId);
}




